<?php #20070415 http://www.framework.altervista.org/FrameWork/blocks/left/05_Accesskey.inc
define('BLOCKACCESSKEY','1.00');

/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/


switch (lang())
{
	case "it" :
		define("_AKSHOW", "ON");
		define("_AKHIDE", "OFF");
		break;
	default :
		define("_AKSHOW", "ON");
		define("_AKHIDE", "OFF");
		break;
}

$_AKHIDE=_AKHIDE;
$_AKSHOW=_AKSHOW;

?>

<?php structure_openBlock("table block ","AccessKeys",""); ?>
    <p>
<?php
global $showaccesskey;
//$showaccesskey=$_COOKIE['showaccesskey'];

if ($showaccesskey !="on"){
	$a = GetAccessKey($_AKSHOW, "showacceskey=on");
	echo "<div align=\"center\"><a accesskey=\"$a\" href=\"?showaccesskey=on\">[$a]$_AKSHOW</a></div>";
}
else{
	$a = GetAccessKey($_AKHIDE, "showacceskey=off");
	echo "<div align=\"center\"><a accesskey=\"$a\" href=\"?showaccesskey=off\">$_AKHIDE</a></div>";
}
?>
</p>
<?php structure_closeBlock(); ?>
